﻿using System;
using System.Collections.Generic;
using T.FAS.Runtime.Base.Entity;

namespace T.FAS.Runtime.Base.SGSPI
{
    public interface IValidateRuleService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        List<ValidateRule> GetValidateRules(string filter = null);

        /// <summary>
        /// 创建或更新
        /// </summary>
        /// <param name="chart"></param>
        void CreateOrUpdateValidateRule(ValidateRule rule);

        /// <summary>
        /// 创建或更新
        /// </summary>
        /// <param name="chart"></param>
        void BatchUpdateValidateRules(List<ValidateRule> rules);

        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="ruleIds"></param>
        void BatchDeleteValidateRules(List<string> ruleIds);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        void DeleteValidateRules(string id);
    }
}
